﻿using OASystem.BLL.IService;
using OASystem.BLL.Service;
using OASystem.Model;
using OASystem.ViewModel;
using System.Collections.Generic;
using System.IO;
using System.Web.Mvc;

namespace OASystem.Controllers
{
    public class Dossier_myController : Controller
    {
        private IDossier_myService _dossier_MyService;
        public Dossier_myController(IDossier_myService dossier_MyService)
        {
            _dossier_MyService= dossier_MyService;
        }

        public JsonResult MyFileInfo(Httppostedfile Httppostedfile)
        {
            //添加
            ResponseResult responseResult = new ResponseResult();

            responseResult.success = _dossier_MyService.Add(Httppostedfile);
            return Json(responseResult); 
        }
        public JsonResult Del(Httppostedfile httppostedfile)
        {
            ResponseResult responseResult = new ResponseResult();
            Dossier_myService dossier_MyService = new Dossier_myService();
            responseResult= dossier_MyService.Del(httppostedfile);
            return Json(responseResult);
        }
    }
}